{capture name="hidden"}	
{/capture}
{capture name="fields"}
{literal}
	<script type="text/javascript">
	function copypageids(id, lang){
		top.opener.window.document.forms['child_list']['parent'].value=id;
		top.opener.window.document.forms['child_list']['copys'].value='1';
		top.opener.window.document.forms['child_list']['act'].value='cop';
		if (lang != 0) top.opener.window.document.forms['child_list']['new_lang'].value=lang;
		top.opener.window.document.forms['child_list'].submit();
		window.close();
	}
	</script>
{/literal}
{strip}
	<!-- * -->
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>

	<table cellpadding="0" cellspacing="0">
		<tr>
			<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			<td>{t t='Pasirinkite kalbą'}:</td>
			<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			<td width="15">
			<select name="languages" style="width:70px" onChange="window.location='index.php?admin=1&popup=9&parent={$data.page.id}'+this.value">
			  {foreach from=$data.tree.lang item="el"}
			  <option value="&new_lang={$el.name}" {if $smarty.get.new_lang|lower==$el.name|lower}selected{/if}>{$el.name}</option>
			  {/foreach}
			</select>		
			</td>
		</tr>
	</table>
 
 	<style type="text/css">
	{literal}
	.pages-item {
    padding: 5px 0; border-top: 1px solid #FFFFFF; border-bottom: 1px solid #D6DBDE;
  }
    .pages-item a {
      background: url('_tvs_system_core_/design/img/document_copy.gif') no-repeat left center; padding: 5px 0 5px 16px;
    }
	{/literal}
	</style>

  <div class="pages-item" style="padding-left: {if $width}{$width}{else}7{/if}px;">
  <a href="javascript:void(0);" onClick="copypageids(0, '{if $smarty.get.new_lang}{$smarty.get.new_lang}{else}0{/if}'); return false;" class="blackUnderline">{t t='Pradžia'}</a>
  </div>
	{foreach from=$tree item="el"}
	{assign var="width" value=$el.depth*20}
	<div class="pages-item" style="padding-left: {if $width}{$width}{else}7{/if}px;">
	<a href="javascript:void(0);" {if $el.id != $smarty.get.parent} onClick="copypageids({$el.id}, '{if $smarty.get.new_lang}{$smarty.get.new_lang}{else}0{/if}'); return false;"{/if} class="blackUnderline" {if $el.id == $smarty.get.parent}style="color:#999999"{/if}>{$el.name}</a>
	</div>
  {/foreach}
{/strip}
{/capture}
